import Layout from '@/page/index/'

export default [{
  path: '/wel',
  component: Layout,
  redirect: '/wel/index',
  children: [{
    path: 'index',
    name: '首页',
    meta: {
      i18n: 'dashboard'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/index')
  }, {
    path: 'dashboard',
    name: '控制台',
    meta: {
      i18n: 'dashboard',
      menu: false,
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
  }]
}, {
  path: '/test',
  component: Layout,
  redirect: '/test/index',
  children: [{
    path: 'index',
    name: '测试页',
    meta: {
      i18n: 'test'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/util/test')
  }]
}, {
  path: '/info',
  component: Layout,
  redirect: '/info/index',
  children: [{
    path: 'index',
    name: '个人信息',
    meta: {
      i18n: 'info'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/user/info')
  }]
},
{
  path: '/templateManage',
  component: Layout,
  redirect: '/templateManage/previewPage',
  children: [{
    path: 'previewPage',
    name: '预览',
    meta: {
      i18n: 'previewPage'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/templateManage/previewPage')
  }]
  },
  {
    path: '/platform',
    component: Layout,
    redirect: '/platform/viewStatistics',
    children: [{
      path: 'viewStatistics',
      name: '查看统计',
      meta: {
        i18n: 'viewStatistics'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/platform/viewStatistics')
    }]
  },
  {
    path: '/templateManage',
    component: Layout,
    redirect: '/templateManage/analysePage',
    children: [{
      path: 'analysePage',
      name: '设置分析',
      meta: {
        i18n: 'analysePage'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/templateManage/analysePage')
    }]
  },{
    path: '/templateManage',
    component: Layout,
    redirect: '/templateManage/municipalEducationBureau',
    children: [{
      path: 'municipalEducationBureau',
      name: '市教育局',
      meta: {
        i18n: 'municipalEducationBureau'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/templateManage/municipalEducationBureau')
    }]
  },{
    path: '/templateManage',
    component: Layout,
    redirect: '/templateManage/xeducationbureau',
    children: [{
      path: 'xeducationbureau',
      name: '县教育局',
      meta: {
        i18n: 'xeducationbureau'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/templateManage/xeducationbureau')
    }]
  },{
    path: '/templateManage',
    component: Layout,
    redirect: '/templateManage/principal',
    children: [{
      path: 'principal',
      name: '校长',
      meta: {
        i18n: 'principal'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/templateManage/principal')
    }]
  },
//   {
//     path: '/templateManagement',
//     component: Layout,
//     redirect: '/templateManage/manage',
//     children: [{
//       path: 'index',
//       name: '模板管理',
//       meta: {
//         i18n: 'templateManage'
//       },
//       component: () =>
//         import( /* webpackChunkName: "views" */ '@/views/templateManage/manage')
//     }]
//   }

]
